for /f "tokens=1" %%i in ('jps -m ^| find "myzg.server"') do (echo %%i)